package cn.edu.wfit.modules.learn.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.edu.wfit.common.core.annotation.Excel;
import cn.edu.wfit.common.core.web.domain.BaseEntity;

/**
 * 竞赛对象 wfit_competition
 * 
 * @author ruoyi
 * @date 2025-07-28
 */
public class WfitCompetition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 竞赛记录的唯一标识符 */
    private Long id;

    /** 竞赛名称 */
    @Excel(name = "竞赛名称")
    private String competitionName;

    /** 竞赛级别 */
    @Excel(name = "竞赛级别")
    private String competitionLevel;

    /** 竞赛形式(0个人,1团队,2个人和团队) */
    @Excel(name = "竞赛形式(0个人,1团队,2个人和团队)")
    private String competitionType;

    /** 竞赛描述 */
    @Excel(name = "竞赛描述")
    private String competitionContent;

    /** 官网地址 */
    @Excel(name = "官网地址")
    private String competitionPath;

    /** 报名开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationStartTime;

    /** 报名结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationEndTime;

    /** 状态（0: 正常, 1: 停用） */
    @Excel(name = "状态", readConverterExp = "0=:,正=常,,1=:,停=用")
    private String status;

    /** 删除标志（0: 存在, 2: 删除） */
    private String delFlag;

    /** 竞赛图片 */
    @Excel(name = "竞赛图片")
    private String image;

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCompetitionName(String competitionName) 
    {
        this.competitionName = competitionName;
    }

    public String getCompetitionName() 
    {
        return competitionName;
    }
    public void setCompetitionLevel(String competitionLevel) 
    {
        this.competitionLevel = competitionLevel;
    }

    public String getCompetitionLevel() 
    {
        return competitionLevel;
    }
    public void setCompetitionType(String competitionType)
    {
        this.competitionType = competitionType;
    }

    public String getCompetitionType()
    {
        return competitionType;
    }
    public void setCompetitionContent(String competitionContent) 
    {
        this.competitionContent = competitionContent;
    }

    public String getCompetitionContent() 
    {
        return competitionContent;
    }
    public void setCompetitionPath(String competitionPath) 
    {
        this.competitionPath = competitionPath;
    }

    public String getCompetitionPath() 
    {
        return competitionPath;
    }
    public void setRegistrationStartTime(Date registrationStartTime) 
    {
        this.registrationStartTime = registrationStartTime;
    }

    public Date getRegistrationStartTime() 
    {
        return registrationStartTime;
    }
    public void setRegistrationEndTime(Date registrationEndTime) 
    {
        this.registrationEndTime = registrationEndTime;
    }

    public Date getRegistrationEndTime() 
    {
        return registrationEndTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("competitionName", getCompetitionName())
            .append("competitionLevel", getCompetitionLevel())
            .append("competitionType", getCompetitionType())
            .append("competitionContent", getCompetitionContent())
            .append("competitionPath", getCompetitionPath())
            .append("registrationStartTime", getRegistrationStartTime())
            .append("registrationEndTime", getRegistrationEndTime())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
